public class VarParDetail{
	public static void main(String[] args) {
		int[] arr ={1,2,3};
		T t1=new T();
		System.out.println(t1.f1(arr));
	}
}
class T{
	public int f1(int... nums){
		int sum = 0;
		for (int i=0;i<nums.length;i++){
			sum+=nums[i];
		}
		return sum;
	}

	public void f2(String str,double... nums){
		
	}
}